Repository navigation
Prevent Android reviewer Azure CLI permission denials - #12441
Merged
Merged
Conversation
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix missing Azure DevOps CLI tools in Android PR Reviewer
Prevent Android reviewer Azure CLI permission denials
Aug 19, 2026
jonathanpeppers
marked this pull request as ready for review
August 19, 2026 14:06
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Android PR Reviewer agent workflow guidance to avoid Azure CLI permission denials caused by scoped-command allowlist restrictions, and refreshes the generated lock metadata to match the updated prompt.
Changes:
- Adds a constraint requiring
az devops invoketo be executed as standalone shell calls with literal arguments (no chaining/pipes/redirection/variable preambles). - Updates the workflow lockfile metadata (
body_hash) to reflect the modified workflow content.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/android-reviewer.md | Adds explicit Azure DevOps CLI invocation constraints to prevent allowlist rejections. |
| .github/workflows/android-reviewer.lock.yml | Refreshes generated gh-aw metadata to align with the updated workflow body. |
Member
|
@dalexsoto review |
jonathanpeppers
enabled auto-merge (squash)
August 19, 2026 16:59
dalexsoto
approved these changes
Aug 19, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
The standalone literal az devops invoke guidance addresses the scoped-command allowlist failure, and the generated workflow lock metadata is in sync.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Android PR Reviewer reported Azure DevOps status queries as missing because compound shell invocations were rejected by its scoped command allowlist.
Workflow guidance
az devops invokecalls with literal arguments.Generated workflow